package com.mars.manager.consumer;

import java.io.Serializable;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * 异常消息消费
 * @author yhaoquan
 *
 */
@Component
public class ExceptionMessageConsumer {
	
	private Logger logger = LoggerFactory.getLogger(ExceptionMessageConsumer.class) ;

	@JmsListener(destination="app.exception")
	public void exceptionMessage(Serializable serializable) {
		logger.info("JMS消息消费[app.exception]........................");
		try {
			System.out.println(serializable);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
